package com.lovingtour.manager.adapter;

import java.util.ArrayList;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.PagerAdapter;
import android.view.View;

public class MainPagerAdapter extends FragmentPagerAdapter{

	private ArrayList<Fragment> fList;
	
	public MainPagerAdapter(FragmentManager fm ,ArrayList<Fragment> fList) {
		super(fm);
		this.fList = fList;
	}

	@Override
	public Fragment getItem(int position) {
		// TODO Auto-generated method stub
		return fList.get(position);
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return fList.size();
	}

}
